<?php
	session_start();
	header('Pragma: no-cache');
	//include "config.php";
	require("system/config.php");
	require_once($CONF['root.dir']."assets/lib/temp/functions.php");
	require_once($CONF['root.dir']."assets/lib/temp/template.php");
	require_once($CONF['root.dir']."system/database.php");
	
	if($conn->isConnect){
		$conn->disconnect();
	}
	
	if($_SESSION["AR_userLogin"]==""){
		require($CONF['root.dir']."application/view/modules/indexget.php");
		getLogin();
	}else{
		if($_SERVER['REQUEST_METHOD'] == "GET"){  
			require($CONF['root.dir']."application/view/modules/indexget.php");
			getindexpage();
		} 
		else {
			die ("Cannot process.");
		}
	}
?>
